<%@ page language="java" import="com.bifrii.bo.*,com.bifrii.transferObjects.*,com.bifrii.dao.*,java.util.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%
	if(session.getAttribute("session.user") != null)
	{
		User u = UsersManager.getInstance().getUser((Integer)session.getAttribute("session.user"));
		out.println("<div id=\"welcome\">Bienvenido " + u.getUser() + " (<a href=\"FrontController?res=index.jsp&logout=true\">Cerrar Sesi&oacute;n</a>)</div>");
	}else
	{
		%>
						<form name="loginform" method="post" action="FrontController?res=index.jsp">		
									<div>Usuario: <input type="text" name="user"></div>		
									<div>Contrase&ntilde;a: <input type="password" name="pass"></div>		
									<div><input type="submit" value="Iniciar Sesi&oacute;n"></div>		
								</form>		
		<%
	}
%>
